package com.gollum.system.domain.model;

import com.gollum.jpa.domain.HertherBaseEnity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.Where;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

/**
 * 系统参数实体
 *
 * @author Herther
 * @version 1.0.0
 * @createTime 2022年08月28日 16:21:00
 */
@Getter
@Setter
@AllArgsConstructor
@Accessors(chain=true)
@NoArgsConstructor
@Entity
@Table(name = "sys_config")
@EntityListeners(AuditingEntityListener.class)
@Where(clause = "has_del = 0")
public class SysConfig extends HertherBaseEnity {

    private static final long serialVersionUID = 1L;

    /** 参数名称 */
    @Column(name = "config_name")
    private String configName;

    /** 参数键名 */
    @Column(name = "config_key")
    private String configKey;

    /** 参数键值 */
    @Column(name = "config_value")
    private String configValue;

    /** 系统配置类型 */
    @Column(name = "config_type",length = 10)
    private String configType;

    /** 系统状态（0正常 1停用） */
    @Column(name = "status",length = 10)
    private String status;

}
